Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NRasterImageExporter<TContent> Class / SaveToStream Method / SaveToStream(Stream,NImageFormat,NRectangle) Method
The stream to save the image to.
The image format to save in.
Bounding box of the area to be exported.


In This Topic
    SaveToStream(Stream,NImageFormat,NRectangle) Method
    In This Topic
    Exports the specified bounds of the document to an image and saves it to the given stream.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SaveToStream( _
       ByVal stream As System.IO.Stream, _
       ByVal imageFormat As NImageFormat, _
       ByVal bounds As NRectangle _
    ) 
    'Usage
     
    
    Dim instance As NRasterImageExporter(Of TContent)
    Dim stream As System.IO.Stream
    Dim imageFormat As NImageFormat
    Dim bounds As NRectangle
     
    instance.SaveToStream(stream, imageFormat, bounds)
    public void SaveToStream( 
       System.IO.Stream stream,
       NImageFormat imageFormat,
       NRectangle bounds
    )

    Parameters

    stream
    The stream to save the image to.
    imageFormat
    The image format to save in.
    bounds
    Bounding box of the area to be exported.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also